<?php
class Application_Form_Clothing extends Application_Form_Product
{
	public function __construct($options = null)
	{
		parent::__construct($options);
		$this->setName('clothing');


		
		$typeclothChoice = array(		'1' => 'Top',
								 		'2' => 'Bottom',
										'3' => 'Underwear',
										'4' => 'Lingerie',
										'5' => 'Shoe',
										'6' => 'Other',
								);
		$type = new Zend_Form_Element_Select('type');
		$type->setLabel('Type:');
		$type->addMultiOptions(array('-1' => 'Choice:')+$typeclothChoice);
		$type->class = 'type';
		$type->addValidator(new Zend_Validate_Between(array('min' => 1, 'max' => 3)))
		->addErrorMessage('You need to select one value');
		
		$matter = new Zend_Form_Element_Text('matter');
		$matter->setLabel('Matter:')
		->setRequired(true)
		->setFilters(array('StringTrim','StripTags'))
		->setValidators(array('NotEmpty'));
		
		$forChoice = array(				'1' => 'Male',
										'2' => 'Female',
										'3' => 'Child',
							);
		$for = new Zend_Form_Element_Select('for');
		$for->setLabel('For:');
		$for->addMultiOptions(array('-1' => 'Choice:')+$forChoice);
		$for->class = 'for';
		$for->addValidator(new Zend_Validate_Between(array('min' => 1, 'max' => 3)))
		->addErrorMessage('You need to select one value');
		
		$size = new Zend_Form_Element_Text('size');
		$size->setLabel('Size:')
		->setRequired(true)
		->setFilters(array('StringTrim','StripTags'))
		->setValidators(array('NotEmpty'));
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')
		->setLabel('Add');
		
		$elements = array( $type, $matter, $for, $size, $submit );
		$this->addElements($elements);
		
		
		
		
		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/loginform.phtml'))));



	}
}